package game;

import javax.vecmath.*;

import sceneGraph.*;

public class Enemy3 extends AbstractPlanetObject implements ISceneObject, IIntersectable, IEnemy {
	private static Color3f color = new Color3f(0.8f, 0.0f, 0f);

	public Enemy3(Point3f pos) {
		super(pos, 0.1f, "/images/other/king.off", 0.0002f, color, color, color, 10);
	}

	public void advanceTowards(Point3f p) {
		Vector3f toPlayer = new Vector3f();
		toPlayer.sub(p, pos);
		toPlayer.normalize();
		toPlayer.scale(0.06f);

		pos.add(toPlayer);
	}

	@Override
	public void accept(Visitor visitor) {
		visitor.visit(this);
	}

}
